package com.culturesalon.dto;

import java.util.Date;

public class Goods {
	private Integer id;
	private String goodsNumber;
	private String goodsName;
	private String brandName;
	private String goodsPictureUrl;
	private Double retailPrice;
	private Double marketPrice;
	private String goodsNature;
	private String goodsDesc;
	private String goodsTag;
	private Integer goodsInventory;
	private Date shelfDate;
	private Date updateDate;
	private Integer inventoryWarn;
	private Boolean recommend;
	private Integer click;
	private Integer categoryId;
	
	public Goods() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Goods(String goodsName) {
		super();
		this.goodsName = goodsName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getGoodsNumber() {
		return goodsNumber;
	}
	public void setGoodsNumber(String goodsNumber) {
		this.goodsNumber = goodsNumber;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public String getBrandName() {
		return brandName;
	}
	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}
	public String getGoodsPictureUrl() {
		return goodsPictureUrl;
	}
	public void setGoodsPictureUrl(String goodsPictureUrl) {
		this.goodsPictureUrl = goodsPictureUrl;
	}
	public Double getRetailPrice() {
		return retailPrice;
	}
	public void setRetailPrice(Double retailPrice) {
		this.retailPrice = retailPrice;
	}
	public Double getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}
	public String getGoodsNature() {
		return goodsNature;
	}
	public void setGoodsNature(String goodsNature) {
		this.goodsNature = goodsNature;
	}
	public String getGoodsDesc() {
		return goodsDesc;
	}
	public void setGoodsDesc(String goodsDesc) {
		this.goodsDesc = goodsDesc;
	}
	public String getGoodsTag() {
		return goodsTag;
	}
	public void setGoodsTag(String goodsTag) {
		this.goodsTag = goodsTag;
	}
	public Integer getGoodsInventory() {
		return goodsInventory;
	}
	public void setGoodsInventory(Integer goodsInventory) {
		this.goodsInventory = goodsInventory;
	}
	public Date getShelfDate() {
		return shelfDate;
	}
	public void setShelfDate(Date shelfDate) {
		this.shelfDate = shelfDate;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public Integer getInventoryWarn() {
		return inventoryWarn;
	}
	public void setInventoryWarn(Integer inventoryWarn) {
		this.inventoryWarn = inventoryWarn;
	}
	public Boolean getRecommend() {
		return recommend;
	}
	public void setRecommend(Boolean recommend) {
		this.recommend = recommend;
	}
	
	public Integer getClick() {
		return click;
	}
	public void setClick(Integer click) {
		this.click = click;
	}
	public Integer getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((goodsName == null) ? 0 : goodsName.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Goods other = (Goods) obj;
		if (goodsName == null) {
			if (other.goodsName != null)
				return false;
		} else if (!goodsName.equals(other.goodsName))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Goods [id=" + id + ", goodsName=" + goodsName
				+ ", marketPrice=" + marketPrice + "]";
	}
	
	
	
	
	
	

}
